package com.qqt.csr.order.vo.req;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.qqt.csr.common.idempotent.RequestKeyParam;
import com.qqt.csr.common.operalog.OperaLogSchema;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotNull;
import lombok.*;
import lombok.experimental.Accessors;

import java.io.Serial;
import java.io.Serializable;

@Getter
@Setter
@Builder
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
@JsonIgnoreProperties(ignoreUnknown = true)
@Schema(name = "ReceivingWorkOrderReqVO", description = "认领工单请求参数")
public class ReceivingWorkOrderReqVO implements Serializable {
    @Serial
    private static final long serialVersionUID = -8988871947653372748L;
    /**
     * 工单id
     */
    @Schema(description = "工单id", requiredMode = Schema.RequiredMode.REQUIRED)
    @OperaLogSchema(desc = "工单id")
    @RequestKeyParam
    @NotNull(message = "工单id不能为空")
    private Long orderId;
}
